package com.pzl.common.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.pzl.common.R;

public class ImageUtil {

    public static void loadDefault(Context context, Object source, ImageView view) {
        Glide.with(context)
                .load(source)
                .error(R.mipmap.ic_launcher)
                .placeholder(R.mipmap.ic_launcher_round)
                .centerCrop()
                .into(view);
    }

}
